
import http from "@/utils/http";
import {XG_PATH} from "@/common/const";
let headers={
    "Content-Type": "application/json; charset=UTF-8"
}
let type='0'
/**
 * 基础—版块 (唐)
 */
export function getblockList(option){
  const url = `${XG_PATH}/searchserver/api/queryOption/blockListByInt.htm`;
  const params = {
   ...option
  };
  return http.get(url, params);
}
/**
 * 板块搜索-选股专用 (孙)
 */
export function searchblack(option){
  const url = `${XG_PATH}/searchserver/api/common/searchblack.htm`;
  const params = {
    blockType: 0,
    pageNum: 1,
    pageSize: 100,
    ...option,
  };
  const data = JSON.stringify(params);
  return http.post(url, params,false,headers,type);  
}
